﻿using MyMES.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Core.Utilities.Response;
using VOL.Entity.DomainModels;
using VOL.Entity.DomainModels.Core;
using VOL.Entity.DomainModels.Repository;

namespace MyMES.IServices.Allots
{
    public interface IAllotService
    {
        Task<WebResponseContent> CreateAllotAsync(Allot entity);
        Task<WebResponseContent> UpdateAllotAsync(Allot entity);
        Task<WebResponseContent> DelAllotA(string ids);
        Task<PageGridData<Allot>> GetAllotAsync(GetAllotDto dto);

        Task<WebResponseContent> CreateAllotMaterialAsync(AllotMaterial entity);
        Task<WebResponseContent> UpdateMaterialAsync(AllotMaterial entity);
        Task<WebResponseContent> DelAllotMaterialAsync(string ids);
        Task<PageGridData<MaterialProduct>> GetMaterialAsync(GetMaterialDto dto);
        Task<WebResponseContent> GetMaterialTypeList();

        Task<WebResponseContent> GetAllotMaterialListByAllotId(int allotId);
    }
}
